

from flask import Flask
from models import db
from schemas import ma
from resources import api
app = Flask(__name__)
app.config['SQLALCHEMY_DATABASE_URI'] =  'sqlite:///tasks_test.db'

db.init_app(app)
ma.init_app(app)
api.init_app(app)


with app.app_context():
    db.drop_all()
    db.create_all()
    db.session.commit()
